<template>
  <div>
    <el-card>
      <el-row :gutter="20">
        <el-col :span="12">
          <el-card style="margin-top: 2px;margin-bottom: 10px;">
            <el-descriptions title="影院" class="margin-top" :column="2" border>
              <el-descriptions-item label="影院Id">{{ cinema.id }}</el-descriptions-item>
              <el-descriptions-item label="专资编码">{{ cinema.stdCode }}</el-descriptions-item>
              <el-descriptions-item label="城市">{{ cinema.cityName }}</el-descriptions-item>
              <el-descriptions-item label="名称"><el-tag>{{ cinema.name }}</el-tag></el-descriptions-item>
              <el-descriptions-item label="影院地址">{{ cinema.address }}</el-descriptions-item>
            </el-descriptions>
          </el-card>
        </el-col>
        <el-input
            type="textarea"
            :rows="15"
            v-model="interfaceResponse" style="width: 80%">
        </el-input>
      </el-row>
    </el-card>
  </div>
</template>

<script>
import Api from '@/api/Movie.js'
export default {
  data() {
    return {
      interfaceResponse:'',
      cinema:{

      },
      queryInfo:{
        cinemaId:''
      }
    }
  },
  created() {
    this.queryInfo.cinemaId = this.$route.query.cinemaId;
    this.getCinema(this.queryInfo.cinemaId)
    this.nlOpiResponse()
  },
  methods: {
    getCinema(id) {
      Api.getCinema({'id':id}).then(res => {
        if (res.success) {
          this.cinema = res.data;
        } else {
          return this.$message.error('查询失败')
        }
      })
    },
    nlOpiResponse() {
        Api.nlOpiResponse(this.queryInfo).then(res => {
            if (res.success) {
                this.interfaceResponse = res.data;
            } else {
                return this.$message.error('获取数据失败')
            }
        })
    }
  },
}
</script>

<style lang="less" scoped>
</style>
